-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: correct/add subgraph
preamble comments (fixes #1194)
#1198
base: master
Are you sure you want to change the base?
Conversation
ece8796
to
179110c
Compare
Signed-off-by: Stefan Pinnow <[email protected]>
179110c
to
af40f01
Compare
sorry, missed one file ... |
"]] | ||
examples = { | ||
{ | ||
options = [["preamble={\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{circular}}"]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure whether I merged the support for this new syntax yet. I have to check that before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you had. At least it seems to work in the currently available first example of
pgf/tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlElectric.lua
Lines 42 to 60 in 0280303
examples = { | |
{ | |
options = [["preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}}"]], | |
code = [[" | |
\tikz \graph [spring electrical layout, horizontal=0 to 1] | |
{ 0 [electric charge=1] -- subgraph C_n [n=10] }; | |
"]] | |
},{ | |
code = [[" | |
\tikz \graph [spring electrical layout, horizontal=0 to 1] | |
{ 0 [electric charge=5] -- subgraph C_n [n=10] }; | |
"]] | |
},{ | |
code = [[" | |
\tikz \graph [spring electrical layout, horizontal=0 to 1] | |
{ [clique] 1 [electric charge=5], 2, 3, 4 }; | |
"]] | |
} | |
} |
which shows as
Motivation for this change
Checklist
Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead:
Remaining instances are
pgf/tex/generic/pgf/graphdrawing/lua/pgf/gd/doc/ogdf/energybased/FMMMLayout.lua
Lines 108 to 123 in 0280303
but since these are not part of the current manual and I couldn't make this part of the manual run, I decided not to fix them.